{if test="$lego->getPagecount() > 1"}
<div class="paginator">
	{if test="$range[0] != 1"}
	<a legotarget="{$lego->runner()->getName()}" class="paginator_page" href="?{$lego->uri()->put($lego->runner()->getName(), array('page'=>1))}">&#171;</a>
	{/if}
	{foreach from="$range" item="$item"}
		<a 
			{if test="$item == $lego->getCurrentPage()"}
				class="paginator_page selected"
			{else}
				class="paginator_page"
			{/if}
			href="?{$lego->uri()->put($lego->runner()->getName(), array('page'=>$item))}"
			legotarget="{$lego->runner()->getName()}">
			{$item}
		</a>
	{/foreach}
	{if test="$range[count($range)-1] != $lego->getPagecount()"}
	<a legotarget="{$lego->runner()->getName()}" class="paginator_page" href="?{$lego->uri()->put($lego->runner()->getName(), array('page'=>$lego->getPagecount()))}">&#187;</a>
	{/if}
</div>
{/if}